package com.medical.server.inhospital.service.impl;

import com.laozj.common.utils.PageUtils;
import com.laozj.common.utils.Query;
import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;


import com.medical.server.inhospital.dao.ApplicationInhospitalDao;
import com.medical.server.inhospital.entity.ApplicationInhospitalEntity;
import com.medical.server.inhospital.service.ApplicationInhospitalService;


@Service("applicationInhospitalService")
public class ApplicationInhospitalServiceImpl extends ServiceImpl<ApplicationInhospitalDao, ApplicationInhospitalEntity> implements ApplicationInhospitalService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<ApplicationInhospitalEntity> page = this.page(
                new Query<ApplicationInhospitalEntity>().getPage(params),
                new QueryWrapper<ApplicationInhospitalEntity>()
        );

        return new PageUtils(page);
    }

}